}

A. No issue at all, the code would compile and run perfectly

B. The code would throw warnings as it’s not marked properly

C. The code is incomplete as there is no need of initializing the

state variables

D. None of these

Q73: What issue would the following code have?

// SPDX-License-Identifier: SOME IDENTIFIER

pragma solidity ^0.8.10;

contract ViewContract {

uint a = 10;

uint b = 2;

function someFunction() public view returns(uint) {

return a++;

}

}

A. No issue at all, the code would compile and run perfectly

B. The code is incomplete as there is no need of initializing the

state variables

C. The code would not compile as there is a transaction in a

function marked as view

D. None of these

Q74: If you need to send a few Ethers to a contract without knowing

the name of any function, which function in that contract would

be invoked?

A. Pure Function

B. View Function

C. Fallback Function

D. None of these